﻿<?php defined('BASEPATH') or die ('No direct script access allowed'); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="Description" content="<?php if(isset($page_content)) echo $page_content;?>" />
    <meta name="Keywords" content="<?php if(isset($page_keywords)) echo $page_keywords;?>" />
    <?php
        if(isset($assets) && is_array($assets)){
            foreach($assets as $k=>$v){
                if(strtolower($k)==="js"){
                    echo '<script src="'.base_url().'js/'.$v.'.js" type="text/javascript" ></script>';
                }elseif(strtolower($k)==="css"){
                    echo '<link href="'.base_url().'css/'.$v.'.css" rel="stylesheet" type="text/css" media="all" />';
                }
            }
        }
    ?>
    <title><?php if(isset($page_title)) {echo $page_title;}?></title>
</head>
<body>
<div id="content">
    
    <div id="main">
    
    <?php echo $this->load->view($page_view,$page_data,true);?>
    
    <br style="clear:both;" />
    </div>
    <div style="margin:auto;width:500px;font-size:12px;color:#c0c0c0">Copyright:  | Base On CodeIgniter | PowerBy <a href="http://www.justfindu.com">I</a></div>
    <div class="clr">&nbsp;</div>
</div>
</body>
</html>